package framework.editor;


import framework.config.Utilities;
import framework.data.Cidade;
import framework.data.Pessoa;
import framework.db.CidadeManager;
import framework.db.PessoaManager;
import framework.panes.Editor;
import framework.panes.EditorPane;
import java.awt.Frame;
import javax.swing.JOptionPane;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * CadastroPane.java
 *
 * Created on May 4, 2011, 8:54:46 PM
 */
/**
 *
 * @author usuario
 */
public class CadastroEditor extends EditorPane
{
    private Pessoa pessoa;
    
    /**
     * 
     * @param Parent
     * @param pessoa
     * @return 
     */
    public static boolean edit( Frame parent, Pessoa pessoa )
    {
        CadastroEditor pane = new CadastroEditor();
        
        pane.setPessoa( pessoa );
        
        return Editor.edit( parent, pane, "Cadastro de Pessoa" );
    }
    
    /** Creates new form CadastroPanre */
    private CadastroEditor()
    {
        initComponents ();
    }
    
    /**
     * 
     * @param p 
     */
    private void setPessoa( Pessoa p )
    {
        this.pessoa = p;
        preencherCampos();
    }
    
    /**
     * 
     */
    private void preencherCampos()
    {
        tfCadastro.setText( String.valueOf( pessoa.getCodigo() ) );
        tfNome.setText( pessoa.getNome() );
        tfCpf.setText( pessoa.getDocumento1() );
        tfRg.setText( pessoa.getDocumento2() );
        tfEndereco.setText( pessoa.getEndereco() );
        tfNumero.setText( String.valueOf( pessoa.getNumeroEndereco() ) );
        tfBairro.setText( pessoa.getBairro() );
        tfCodCidade.setText( String.valueOf( pessoa.getCdCidade() ) );
        tfCep.setText( pessoa.getCep() );
        tfEmail.setText( pessoa.getEmail() );
        tfMsn.setText( pessoa.getMsn() );
        tfTelefone1.setText( pessoa.getFone1() );
        tfTelefone2.setText( pessoa.getFone2() );
        tfConjuge.setText( String.valueOf( pessoa.getCdConjuge() ) );
        tfAtividade.setText( pessoa.getAtividade() );
        tfSite.setText( pessoa.getWebsite() );
    }
    
    /**
     * 
     */
    @Override
    public void accept()
    {
        pessoa.setNome( tfNome.getText() );
        pessoa.setDocumento1( tfCpf.getText() );
        pessoa.setDocumento2( tfRg.getText() );
        pessoa.setEndereco( tfEndereco.getText() );
        pessoa.setEnderecoNumero( Integer.parseInt( tfNumero.getText() ) );
        pessoa.setBairro( tfBairro.getText() );
        pessoa.setCdCidade( Integer.parseInt( tfCodCidade.getText() ) );
        pessoa.setCep( tfCep.getText() );
        pessoa.setEmail( tfEmail.getText() );
        pessoa.setMsn( tfMsn.getText() );
        pessoa.setFone1( tfTelefone1.getText() );
        pessoa.setFone2( tfTelefone2.getText() );
        pessoa.setCdConjuge( Integer.parseInt( tfConjuge.getText() ) );
        pessoa.setAtividade( tfAtividade.getText() );
        pessoa.setWebsite( tfSite.getText() );
    }
    
    @Override
    public String validateInput()
    {
        String erro = "";
        
        if ( tfNomeCidade.getText().isEmpty())
        {
            erro = " - Cidade inválida.";
        }
        
        if ( !Utilities.validacpf( tfCpf.getText() ) )
        {
            erro += "\n - CPF inválido.";
        } 
        return erro;
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;

        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        pnCadastro = new javax.swing.JPanel();
        tfCadastro = new javax.swing.JTextField();
        tfNome = new javax.swing.JTextField();
        tfCpf = new javax.swing.JTextField();
        tfRg = new javax.swing.JTextField();
        pnEndereco = new javax.swing.JPanel();
        jLabel5 = new javax.swing.JLabel();
        tfNumero = new javax.swing.JTextField();
        tfEndereco = new javax.swing.JTextField();
        tfBairro = new javax.swing.JTextField();
        pnCidade = new javax.swing.JPanel();
        tfCodCidade = new javax.swing.JTextField();
        tfNomeCidade = new javax.swing.JTextField();
        tfCep = new javax.swing.JTextField();
        tfEmail = new javax.swing.JTextField();
        tfMsn = new javax.swing.JTextField();
        tfTelefone1 = new javax.swing.JTextField();
        jLabel14 = new javax.swing.JLabel();
        tfTelefone2 = new javax.swing.JTextField();
        pnConjuge = new javax.swing.JPanel();
        tfConjuge = new javax.swing.JTextField();
        tfNomeConjuge = new javax.swing.JTextField();
        tfAtividade = new javax.swing.JTextField();
        tfSite = new javax.swing.JTextField();
        jLabel15 = new javax.swing.JLabel();

        setLayout(new java.awt.GridBagLayout());

        jLabel1.setText("Cadastro:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(15, 15, 5, 5);
        add(jLabel1, gridBagConstraints);

        jLabel2.setText("CPF:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(0, 15, 5, 5);
        add(jLabel2, gridBagConstraints);

        jLabel3.setText("RG:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 5);
        add(jLabel3, gridBagConstraints);

        jLabel4.setText("Endereço:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(0, 15, 5, 5);
        add(jLabel4, gridBagConstraints);

        jLabel6.setText("Bairro:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(0, 15, 5, 5);
        add(jLabel6, gridBagConstraints);

        jLabel7.setText("Cidade:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(0, 15, 5, 5);
        add(jLabel7, gridBagConstraints);

        jLabel8.setText("CEP:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 5;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(0, 15, 5, 5);
        add(jLabel8, gridBagConstraints);

        jLabel9.setText("Email:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 6;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(0, 15, 5, 5);
        add(jLabel9, gridBagConstraints);

        jLabel10.setText("MSN:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 7;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(0, 15, 5, 5);
        add(jLabel10, gridBagConstraints);

        jLabel11.setText("Telefone1:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 8;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(0, 15, 5, 5);
        add(jLabel11, gridBagConstraints);

        jLabel12.setText("Conjuge:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 9;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(0, 15, 5, 5);
        add(jLabel12, gridBagConstraints);

        jLabel13.setText("Atividade:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 10;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(0, 15, 5, 5);
        add(jLabel13, gridBagConstraints);

        pnCadastro.setLayout(new java.awt.GridBagLayout());

        tfCadastro.setEditable(false);
        tfCadastro.setFocusable(false);
        tfCadastro.setPreferredSize(new java.awt.Dimension(60, 20));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(15, 0, 5, 5);
        pnCadastro.add(tfCadastro, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(15, 0, 5, 15);
        pnCadastro.add(tfNome, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridwidth = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.weightx = 1.0;
        add(pnCadastro, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 5);
        add(tfCpf, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 3;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 15);
        add(tfRg, gridBagConstraints);

        pnEndereco.setLayout(new java.awt.GridBagLayout());

        jLabel5.setText("Número:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 5);
        pnEndereco.add(jLabel5, gridBagConstraints);

        tfNumero.setPreferredSize(new java.awt.Dimension(60, 20));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 15);
        pnEndereco.add(tfNumero, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 5);
        pnEndereco.add(tfEndereco, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.gridwidth = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.weightx = 1.0;
        add(pnEndereco, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.gridwidth = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 15);
        add(tfBairro, gridBagConstraints);

        pnCidade.setLayout(new java.awt.GridBagLayout());

        tfCodCidade.setPreferredSize(new java.awt.Dimension(60, 20));
        tfCodCidade.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                tfCodCidadeFocusLost(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 5);
        pnCidade.add(tfCodCidade, gridBagConstraints);

        tfNomeCidade.setEditable(false);
        tfNomeCidade.setFocusable(false);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 15);
        pnCidade.add(tfNomeCidade, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.gridwidth = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.weightx = 1.0;
        add(pnCidade, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 5;
        gridBagConstraints.gridwidth = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 15);
        add(tfCep, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 6;
        gridBagConstraints.gridwidth = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 15);
        add(tfEmail, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 7;
        gridBagConstraints.gridwidth = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 15);
        add(tfMsn, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 8;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 5);
        add(tfTelefone1, gridBagConstraints);

        jLabel14.setText("Site:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 11;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(0, 15, 15, 5);
        add(jLabel14, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 3;
        gridBagConstraints.gridy = 8;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 15);
        add(tfTelefone2, gridBagConstraints);

        pnConjuge.setLayout(new java.awt.GridBagLayout());

        tfConjuge.setPreferredSize(new java.awt.Dimension(60, 20));
        tfConjuge.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                tfConjugeFocusLost(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 5);
        pnConjuge.add(tfConjuge, gridBagConstraints);

        tfNomeConjuge.setEditable(false);
        tfNomeConjuge.setFocusable(false);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 15);
        pnConjuge.add(tfNomeConjuge, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 9;
        gridBagConstraints.gridwidth = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.weightx = 1.0;
        add(pnConjuge, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 10;
        gridBagConstraints.gridwidth = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 15);
        add(tfAtividade, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 11;
        gridBagConstraints.gridwidth = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(0, 0, 15, 15);
        add(tfSite, gridBagConstraints);

        jLabel15.setText("Telefone2:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 8;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 5);
        add(jLabel15, gridBagConstraints);
    }// </editor-fold>//GEN-END:initComponents

    private void tfCodCidadeFocusLost(java.awt.event.FocusEvent evt)//GEN-FIRST:event_tfCodCidadeFocusLost
    {//GEN-HEADEREND:event_tfCodCidadeFocusLost
        try
        {
            Cidade c = CidadeManager.getInstance().getCidade( Integer.parseInt( tfCodCidade.getText() ) );
            if (c != null) 
            {
                tfNomeCidade.setText( c.getNome() );
            }
        }
        catch ( Exception e ) { }
        
    }//GEN-LAST:event_tfCodCidadeFocusLost

    private void tfConjugeFocusLost(java.awt.event.FocusEvent evt)//GEN-FIRST:event_tfConjugeFocusLost
    {//GEN-HEADEREND:event_tfConjugeFocusLost
        try
        {
            Pessoa p = PessoaManager.getInstance().getPessoa( Integer.parseInt( tfConjuge.getText() ) );
            if (p != null) 
            {
                tfNomeConjuge.setText( p.getNome() );
            }
        }
        catch ( Exception e ) { }
    }//GEN-LAST:event_tfConjugeFocusLost

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel pnCadastro;
    private javax.swing.JPanel pnCidade;
    private javax.swing.JPanel pnConjuge;
    private javax.swing.JPanel pnEndereco;
    private javax.swing.JTextField tfAtividade;
    private javax.swing.JTextField tfBairro;
    private javax.swing.JTextField tfCadastro;
    private javax.swing.JTextField tfCep;
    private javax.swing.JTextField tfCodCidade;
    private javax.swing.JTextField tfConjuge;
    private javax.swing.JTextField tfCpf;
    private javax.swing.JTextField tfEmail;
    private javax.swing.JTextField tfEndereco;
    private javax.swing.JTextField tfMsn;
    private javax.swing.JTextField tfNome;
    private javax.swing.JTextField tfNomeCidade;
    private javax.swing.JTextField tfNomeConjuge;
    private javax.swing.JTextField tfNumero;
    private javax.swing.JTextField tfRg;
    private javax.swing.JTextField tfSite;
    private javax.swing.JTextField tfTelefone1;
    private javax.swing.JTextField tfTelefone2;
    // End of variables declaration//GEN-END:variables
}
